package com.fz.us.oa.web.shiro.realm;

import java.util.Map;

/**
 * 用户会话权限 Token
 */
public class StatelessAuthcToken extends StatelessBaseToken {

    private String uid;
    private Map<String, String> params;
    private String token;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
       return uid;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
